home *** CD-ROM | disk | FTP | other *** search
/ CSi Master: Pro Tools 6 / CSi Master: Pro Tools 6.iso / mac / QuickTime Installer-0SX / QuickTime.pkg / Contents / Resources / cleancruft < prev    next >
Encoding:
Text File  |  2003-07-07  |  1.5 KB  |  42 lines

  1. #!/bin/sh
  2. #
  3. ####################################
  4. #   USE FOR SCM pre_install package maker scripts
  5. ####################################
  6. #   - Removes any old Clamato(5.0.4) quicktime pieces
  7. #   - Removes any old SU1(5.0.5) quicktime pieces
  8. #   - Removes any old QuickTime.framework/Info-macos.plist
  9. #   - Remove the QuickTime Player Channels file
  10. #   - Remove the old QuickTime Player Help folder
  11.  
  12. QUICKTIMECOMPONENTSDIR=/System/Library/QuickTime
  13. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeJPEGUpdate.component" ]; then
  14.     rm -rf "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeJPEGUpdate.component"
  15. fi
  16.  
  17. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeDVUpdate.component" ]; then
  18.     rm -rf "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeDVUpdate.component"
  19. fi
  20.  
  21. if [ -d "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeComponentsUpdate.component" ]; then
  22.     rm -rf "$3/$QUICKTIMECOMPONENTSDIR/QuickTimeComponentsUpdate.component"
  23. fi
  24.  
  25. # Remove all the non-English Resources from all the QuickTime pieces.
  26. RM="/bin/rm -rf"
  27.  
  28. # Remove the old Info-macos.plist file
  29. if [ -f "$3/System/Library/Frameworks/QuickTime.framework/Versions/A/Resources/Info-macos.plist" ]; then
  30.     $RM "$3/System/Library/Frameworks/QuickTime.framework/Versions/A/Resources/Info-macos.plist"
  31. fi
  32.  
  33. # Remove the QuickTime Player channels file
  34. if [ -f "$3/System/Library/QuickTime/QuickTime Channels" ]; then
  35.     $RM "$3/System/Library/QuickTime/QuickTime Channels"
  36. fi
  37.  
  38. # Remove the old QuickTime Player Help folder
  39. if [ -d "$3/Library/Documentation/Help/QuickTime.help" ]; then
  40.     $RM "$3/Library/Documentation/Help/QuickTime.help"
  41. fi  
  42.